<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        div{
            width: 500px;
            height: 300px;
            margin: 100px auto;
            perspective: 1000px;

        }
        div img{
            transform: rotateX(30deg) translateZ(100px);
        }
    </style>
</head>
<body>
   <div>
       <img src="2.jpg">
   </div>
</body>
</html>